package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.BasePlatformProcessDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 基础会员注册流程Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-11-09
 */
@Repository
public interface BasePlatformProcessRepository extends JpaRepository<BasePlatformProcessDO, Long>, JpaSpecificationExecutor<BasePlatformProcessDO> {
    BasePlatformProcessDO findFirstByProcessKey(String processKey);

    BasePlatformProcessDO findFirstByDefaultProcess(Boolean defaultProcess);
}
